class Card:

  def __init__(self, card_number):
    self.card_number = card_number
    self.__money = 0

  def getInfo(self):
    print('Card.No: {}, money: {}'.format(self.card_number, self.__money))

  def setMoney(self, money):
    self.__money = money
    print('Card.No: {}, money: {}'.format(self.card_number, self.__money))

  def delMoney(self):
    del Card.money
    print('删除了money')

  money = property(getInfo, setMoney, delMoney, '这是property')

card_1 = Card('123')

card_1.money
card_1.money = 3000
del card_1.money
card_1.money  # 报错: AttributeError: 'Card' object has no attribute 'money'
